//---------------------------------------------------------------------------
#ifndef ObjectClassH
#define ObjectClassH
#include <vcl.h>
#include "Constants.cpp"
//---------------------------------------------------------------------------
class CObject {
protected:
	int x, y;
	int number;
	UnicodeString name, description;
	TCanvas* canvas;
public:
	CObject(TCanvas* canvas, int x, int y);
	void setX(int x);
	void setY(int y);
	void setName(UnicodeString name);
	void setDescription(UnicodeString description);
	void setNumber(int number);
	int getX();
	int getY();
	UnicodeString getName();
	UnicodeString getDescription();
	int getNumber();
	virtual void show();
	virtual void hide();
	virtual void move(int x, int y);
	virtual bool isSelect(int xm, int ym);
};
//---------------------------------------------------------------------------
#endif
